package com.itheima.rabbitmq.producer.controller;

import com.itheima.rabbitmq.producer.config.MessageSender;
import com.itheima.rabbitmq.producer.config.RabbitConfig;
import com.itheima.rabbitmq.producer.service.BusinessService;
import org.springframework.amqp.rabbit.connection.CorrelationData;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @program: springbootRabbitmq->TestSendMQ
 * @description:
 * @author: G_Y
 * @create: 2019-08-24 12:49
 **/
@RestController
public class TestSendMQ {



    @Autowired
    private BusinessService businessService;


    @RequestMapping("/send/mq")
    public String sendMq() {
        String handle = businessService.handle();

        return handle;
    }

}
